﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.WS.UserControls;
using GCELibrary.Current;
using System.Transactions;
using ZF.BLL;
using Newtonsoft.Json;
using ZF.BLL.Admin;
namespace ZF.WS.Admin.ads
{
    public partial class adstemplate : ZF.BLL.Page.MMPage
    {
        [PageArgument(Key = "key", CanNull = false)]
        public string Key { get; set; }
        public string Json { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {
                Json = dc.AD_Img.ToList().Select(p => new
                {
                    appKey = p.AppKey,
                    image = p.Image,
                }).ToList().JsonConvert();
            }
        }
    }
}
